<template>
  <searchItem
    :value="props.modelValue"
    :name="'name'"
    :table-obj="modalCofig.supplyName"
    :title="'供应商名称'"
    @change="change"
  />
</template>

<!--新script-->
<script lang="ts" setup>
  import searchItem from './index.vue';
  import { modalCofig } from './input-modal-config';

  const props = defineProps({
    modelValue: {
      type: String,
      default: '',
    },
  });
  const emit = defineEmits(['update:modelValue']);
  const change = (val: any) => {
    emit('update:modelValue', val.key);
  };
</script>

<style lang="less" scoped>
  .base-component {
    color: red;
  }
</style>
